<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<h2>测试文件上传</h2>
<form action="./file/fileupload" method="post" enctype="multipart/form-data">

    <input type="file" name="aa">
    <input type="submit" value="上传">
</form>
<p>
    <a href="./files/download.txt">download.txt</a>
    <a href="./files/4.jpg">4.jpg</a>
    <h2>控制器下载</h2>
<a href="./file/download?fileName=download.txt">download.txt</a>
<a href="./file/download?fileName=4.jpg">4.jpg</a>
</p>
</body>
</html>